function timestampToTime(date) {

     var timestamp = new Date(date)
    var year = timestamp.getFullYear();
    var month = timestamp.getMonth() + 1;
    var date = timestamp.getDate();
    var hour = timestamp.getHours();
    var minute = timestamp.getMinutes();
    var second = timestamp.getSeconds();
    return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
}
export default timestampToTime
